package cn.wolfcode.luowowo.comment.service;

import cn.wolfcode.luowowo.comment.domain.QuestionAnswer;
import cn.wolfcode.luowowo.comment.query.QuestionAnswerQuery;
import org.springframework.data.domain.Page;

import java.util.List;

public interface IQuestionAnswerService {
    void save(QuestionAnswer answer);

    Page query(QuestionAnswerQuery qo);

    /**
     * 问答首页
     * @param qo
     * @param qids
     * @return
     */
    Page queryForList(QuestionAnswerQuery qo, List<Long> qids);

    List<QuestionAnswer> list();

}
